<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <a th:href="@{toadd}">添加</a><br>
    <input type="text" name="searchMap">
    <input type="button" value="搜索">
    <table border="1" cellspacing="0">
        <tr>
            <td>姓名</td>
            <td>性别</td>
            <td>密码</td>
            <td>年龄</td>
            <td>手机号</td>
            <td>操作</td>
        </tr>
        <tr th:each="user:${list}">
            <td th:text="${user.name}">姓名</td>
            <td th:text="${user.gender}">性别</td>
            <td th:text="${user.password}">密码</td>
            <td th:text="${user.age}">年龄</td>
            <td th:text="${user.tel}">手机号</td>
            <td>
                <a th:href="@{findById(id=${user.id})}">编辑</a>
                <a th:href="@{delete(id=${user.id})}">删除</a>
            </td>
        </tr>
    </table>
</body>
</html>